﻿<phone:PhoneApplicationPage 
    x:Class="HomeBuyerTools.Views.Expensive.TotalExpensive"
    xmlns:my="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"  
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:tookit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="85"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel Orientation="Horizontal" Margin="0,0,0,0">
            <Image x:Name="imgTitle" Width="71" Height="71" HorizontalAlignment="Left" MouseEnter="imgTitle_MouseEnter" Style="{StaticResource PovitTitle}"/>

            <TextBlock x:Name="tblkhyphen" Text="-" Margin="0,-20,5,0" FontSize="74" Foreground="White"/>
            <TextBlock Text="Total Expense" Margin="0,15,0,0" Width="265" FontFamily="Comic Sans MS" Foreground="Red" FontSize="28" FontWeight="Bold" TextWrapping="NoWrap"/>
        </StackPanel>
        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <TextBlock x:Name="tblPeriodTime" Visibility="Collapsed" Grid.Row="0"  Text="Expensive Name"   FontSize="20" Margin="8,0,0,0" Foreground="White"></TextBlock>
            <TextBlock x:Name="tblExpensive"  Grid.Row="1"  Text="Expense Name"   FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
            <StackPanel x:Name="stackExp"  Orientation="Horizontal" Grid.Row="2">
                <TextBox  x:Name="txtExpensiveName" Background="White" Text="House Rent" Width="400">
                    <TextBox.InputScope>
                        <InputScope>
                            <InputScopeName NameValue="Text"/>
                        </InputScope>
                    </TextBox.InputScope>
                </TextBox>
                <TextBlock x:Name="tblgapExp"  FontSize="32"  Margin="0,12,0,0" Foreground="White"></TextBlock>
            </StackPanel>
            <TextBlock x:Name="tblamount"  Grid.Row="3"  Text="Amount"   FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
            <StackPanel x:Name="stackAmount"  Orientation="Horizontal" Grid.Row="4">
                <TextBox  x:Name="Amount" Background="White" Text="800" InputScope="TelephoneNumber" Width="400" ></TextBox>
                <TextBlock  FontSize="32" Text="$" Margin="0,12,0,0" Foreground="White"></TextBlock>
            </StackPanel>
            <TextBlock x:Name="tblFormDate"  Grid.Row="5"  Text="From Date"   FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>

            <!--<Button x:Name="btnAdd" HorizontalAlignment="Left" Content="Save" Width="400" Click="Save_click" Grid.Row="40"/>-->
            <tookit:DatePicker x:Name="FromDatepickr" Background="White" Width="400" HorizontalAlignment="Left" Value="2/3/2012" Grid.Row="6" ValueChanged="FromDatepickr_ValueChanged"/>
            <TextBlock x:Name="tblTodate" Grid.Row="7"  Text="To Date"   FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
            <tookit:DatePicker x:Name="ToDatepickr" Width="400" HorizontalAlignment="Left" Value="7/11/2012" Grid.Row="8" Background="White" ValueChanged="ToDatepickr_ValueChanged" />
        </Grid>
        <my:AdControl x:Name="adcontrol" Grid.Row="2"  BorderBrush="Transparent" Margin="-1.5,5,0,0"  AdUnitId="81658" Height="80" Width="480" ApplicationId="3c3f42d5-f5a3-48ea-8832-4a07eaabbce5" IsAutoRefreshEnabled="True" ></my:AdControl>

    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
           
            <shell:ApplicationBarIconButton IconUri="/Images/Calculator.png" x:Name="AppBarSaveData" Text="Save"  Click="AppBarSaveData_Click"/>
              
            <!--- <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>-->
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>
